export function getToken () {
  if (localStorage.getItem('token') && localStorage.getItem('token') !== '') {
    return localStorage.getItem('token')
  } else {
    return ''
  }
}

export function getUinfo () {
  if (localStorage.getItem('uinfo') && localStorage.getItem('uinfo') !== '') {
    return JSON.parse(localStorage.getItem('uinfo'))
  } else {
    return ''
  }
}

export function getPath () {
  if (localStorage.getItem('path') && localStorage.getItem('path') !== '') {
    return localStorage.getItem('path')
  } else {
    return ''
  }
}

export function getRongToken () {
  if (localStorage.getItem('RongToken') && localStorage.getItem('RongToken') !== '') {
    return localStorage.getItem('RongToken')
  } else {
    return ''
  }
}

export function getCity () {
  if (localStorage.getItem('cityNmae') && localStorage.getItem('cityNmae') !== '') {
    return localStorage.getItem('cityNmae')
  } else {
    return ''
  }
}

export function getCityCode () {
  if (localStorage.getItem('cityCode') && localStorage.getItem('cityCode') !== '') {
    return localStorage.getItem('cityCode')
  } else {
    return ''
  }
}
